<div class="modificarPerfil">
<?php echo $javascript->link('prototype.js');?>
<?php echo $form->create('User', array('action'=>'infoPersonal'));?>
	<fieldset>
 		<legend><?php //__('Modificar Mi Perfil');?></legend>
		<table>
			<tr>
				<th><?php __('Modificar Mi Perfil');?></th>
				<th><?php echo  $ajax->link('Cancel', array( 'controller' => 'users', 'action' => 'perfil'), 
				array( 'update' => 'Miperfil' )); ?></th>
			</tr>
	<tr><td>		
	<?php
                //echo $form->input('user', array('type' => 'hidden'));
		echo $form->input('nombre');
		echo $form->input('apellido');
                echo $form->input('pais_id', array('label' => 'Elija su pais','options' => $paises_list, 'default' => $form->value('User.pais_id')));
		echo $form->input('nacimiento', array('label' => 'Fecha de nacimiento', 'dateFormat' => 'DMY', 'minYear' => date('Y') - 70, 'maxYear' => date('Y'), 'default' => $form->value('User.nacimiento')));
		echo $form->input('sexo', array('options' => array('F' => 'Femenino','M' => 'Masculino'),'default' => $form->value('User.sexo')));
		echo $form->input('direccion');
		echo $form->input('telefono');
	?>
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
	        <?php echo $ajax->submit('Aceptar', array('url' => 'infoPersonal', 'complete' => 'updateInfoPersonal()'));?>
		<?php //echo $form->button('Cancel', array('type'=>'button', 'onclick'=> 'updateInfoPersonal()'))?>
		<?php echo $form->end();?>
		</td>
	</tr>
		</table>
	</fieldset>

</div>
<div class="actions">
	<ul>
		<li><?php //echo $html->link(__('Delete', true), array('action'=>'delete', $form->value('User.user')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('User.user'))); ?></li>
		<li><?php //echo $html->link(__('Lista de Paises', true), array('controller'=> 'paises', 'action'=>'index')); ?> </li>
		<li><?php //echo $html->link(__('Lista de Grupos', true), array('controller'=> 'grupos', 'action'=>'index')); ?> </li>
	
	</ul>
</div>